package com.ms.biz;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.system.auth.AuthUtil;
import com.system.auth.model.AuthClient;

/**
 * 启动类
 * @author yuejing
 * @date 2019年8月5日 下午4:55:30
 */
@EnableEurekaClient
@SpringBootApplication
@Configuration
@ComponentScan("com.*")
public class BizGrpcServer1Application {

	public static void main(String[] args) {
		SpringApplication.run(BizGrpcServer1Application.class, args);

		initAuthClient();
	}

	private static void initAuthClient() {
		AuthClient client = new AuthClient("196845682", "测试调用", "http://127.0.0.1", "708c80644e3f868c429c24cd2cdb7c8e", "http://127.0.0.1/callback.htm");
		AuthUtil.addAuthClient(client);
	}
}